import { createRouter, createWebHistory } from 'vue-router'
import home from '../home'
import message from '../message'
import imageList from '../imagelist'
import test from '../test'
const router = [
    { path: '/', component: home },
    { path: '/message', component: message },
    { path: '/imageList', component: imageList },
    { path: '/test', component: test }
]
//实例化VueRouter并将routes添加进去
const Router = createRouter({
    //ES6简写，等于routes：routes
    history: createWebHistory(),
    routes: router
});
export default Router